package com.jingdianjichi.practice.server.mapper;

import com.jingdianjichi.practice.server.entity.po.PracticePO;
import com.jingdianjichi.practice.server.entity.po.PracticeSetDetailPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:PracticeDao
 * Package:com.jingdianjichi.practice.server.mapper
 * Description:
 *
 * @Author fst
 * @Create 2025/1/18 21:02
 * @Version 1.0
 */
public interface PracticeDao
{

    void insert(PracticePO practicePO);

    PracticePO selectById(Long practiceId);

    void update(PracticePO practicePO);

    void deleteById(Long practiceId);

    Integer getUnCompletePracticeCount(String loginId);

    List<PracticePO> getUnCompletePractice(@Param("loginId") String loginId, @Param("start") int start, @Param("pageSize") Integer pageSize);
}
